//
//  MyDraggableImage.h
//  simple
//
//  Created by Echo on 13-12-25.
//  Copyright (c) 2013年 Echo. All rights reserved.
//

#import <UIKit/UIKit.h>
#define  bg_tag 100
@class MyDraggableImage;
@protocol MyDraggableImageDelegate <NSObject>
@optional
-(void)clickButtonBegin:(CGRect)rect;
-(void)clickButtonMove:(NSInteger)index view:(MyDraggableImage*)view;
-(void)clickButtonEnd:(CGRect)rect name:(NSString*)name view:(MyDraggableImage*)view;
@end

@interface MyDraggableImage : UIButton{
    NSString *name;
    NSString *_id;
@private
    
    CGPoint startLocation;
    
    __unsafe_unretained id delegate;
    CGRect beginFrame;
    int type;
    
}
@property (nonatomic, strong) NSString *name, *_id;
@property (nonatomic, assign) id delegate;
@property (nonatomic, assign) int type;
-(void)setImage:(UIImage*)image;
@end
